//BitWorks V1.0 001
//Half-Bit Gaming, LLC
//This script developed by Harvey Barnes

//bw_checkData(section,key)
//returns true if the section/key exists else it returns false

//Opens the file, this is a set file.
ini_open("data/default.ini")    //Make the file an argument instead? Make it pull a variable?

//Establishes the "rv" variable and sets it a default value
var rv = 404

//Checks if the KEY is equal to 404, if so then it chooses the "section" command
if argument1 = 404 {
    rv = ini_section_exists(argument0)
    }
    
//Checks if the KEY is not equal to 404, if so then it chooses the "key" command
if argument1 != 404 {
    rv = ini_key_exists(argument0,argument1)
    }

//Closes the INI file
ini_close()

//Returns the "rv" value
return rv
